package view;

import java.awt.Dimension;
import java.awt.Rectangle;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.border.BevelBorder;

public class BancoJanela extends JFrame {

	private static final long serialVersionUID = 1L;
	private JFrame jFrame =  null;  //  @jve:decl-index=0:visual-constraint="25,19"
	private JPanel jContentPane = null;
	private JPanel jPanel = null;
	
	private JButton jButtonSalvar = null;
	private JButton jButtonCancelar = null;
	private JButton jButtonExcluir = null;
	private JButton jButtonEditar = null;
	
	private JScrollPane jScrollPane = null;
	private JTable jTable = null;
	
	private JLabel jLabelNomeBreve = null;
	private JLabel jLabelNome = null;
	
	private JTextField jTextFieldNome = null;
	private JTextField jTextFieldContato = null;
	
	private JLabel jLabelTitulo = null;

	/**
	 * This method initializes jFrame	
	 * 	
	 * @return javax.swing.JFrame	
	 */
	public BancoJanela(){
		//super.initialize(700, 630);
		getJFrame();
		jFrame.setVisible(true);
		jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

	/**
	 * This method initializes jFrame	
	 * 	
	 * @return javax.swing.JFrame	
	 */
	private JFrame getJFrame() {
		if (jFrame == null) {
			jFrame = new JFrame();
			jFrame.setSize(new Dimension(808, 515));
			jFrame.setContentPane(getJContentPane());
		}
		return jFrame;
	}

	/**
	 * This method initializes jContentPane	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.add(getJButtonSalvar(), null);
			jContentPane.add(getJButtonCancelar(), null);
			jContentPane.add(getJScrollPane(), null);
			jContentPane.add(getJButtonExcluir(), null);
			jContentPane.add(getJButtonEditar(), null);
			jContentPane.add(getJPanel2(), null);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jButtonSalvar	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonSalvar() {
		if (jButtonSalvar == null) {
			jButtonSalvar = new JButton();
			jButtonSalvar.setBounds(new Rectangle(8, 5, 95, 30));
			jButtonSalvar.setText("Salvar");
		}
		return jButtonSalvar;
	}

	/**
	 * This method initializes jButtonCancelar	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonCancelar() {
		if (jButtonCancelar == null) {
			jButtonCancelar = new JButton();
			jButtonCancelar.setBounds(new Rectangle(198,5, 95, 30));
			jButtonCancelar.setText("Cancelar");
		}
		return jButtonCancelar;
	}

	/**
	 * This method initializes jScrollPane	
	 * 	
	 * @return javax.swing.JScrollPane	
	 */
	private JScrollPane getJScrollPane() {
		if (jScrollPane == null) {
			jScrollPane = new JScrollPane();
			jScrollPane.setBounds(new Rectangle(379, 40, 412, 435));
			jScrollPane.setViewportView(getJTable());
		}
		return jScrollPane;
	}

	/**
	 * This method initializes jTable	
	 * 	
	 * @return javax.swing.JTable	
	 */
	private JTable getJTable() {
		if (jTable == null) {
			jTable = new JTable();
		}
		return jTable;
	}

	/**
	 * This method initializes jButtonExcluir	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonExcluir() {
		if (jButtonExcluir == null) {
			jButtonExcluir = new JButton("Editar");
			jButtonExcluir.setBounds(new Rectangle(380, 5, 95, 30));
		}
		return jButtonExcluir;
	}

	/**
	 * This method initializes jButtonEditar	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonEditar() {
		if (jButtonEditar == null) {
			jButtonEditar = new JButton("Excluir");
			jButtonEditar.setBounds(new Rectangle(103, 5, 95, 30));
		}
		return jButtonEditar;
	}

	/**
	 * This method initializes jPanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJPanel2() {
		if (jPanel == null) {
			
			
			jLabelTitulo = new JLabel();
			jLabelTitulo.setBounds(new Rectangle(5, 3, 342, 22));
			jLabelTitulo.setText("CADASTRO / EDIÇÃO / REMOÇÃO DE BANCO");
			
			jLabelNome = new JLabel();
			jLabelNome.setBounds(new Rectangle(6, 63, 109, 20));
			jLabelNome.setText("* Nome");
			
			jLabelNomeBreve = new JLabel();
			jLabelNomeBreve.setBounds(new Rectangle(6, 38, 109, 20));
			jLabelNomeBreve.setText("* Nome Breve:");
			
			jPanel = new JPanel();
			jPanel.setLayout(null);
			jPanel.setBounds(new Rectangle(8, 40, 355, 435));
			jPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
			
			jPanel.add(jLabelNomeBreve, null);
			jPanel.add(jLabelNome, null);
			jPanel.add(jLabelTitulo, null);
			jPanel.add(getJTextFieldNome(), null);
			jPanel.add(getJTextFieldNomeBreve(), null);
			
		}
		return jPanel;
	}

	/**
	 * This method initializes jTextFieldNome	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldNomeBreve() {
		if (jTextFieldNome == null) {
			jTextFieldNome = new JTextField();
			jTextFieldNome.setBounds(new Rectangle(123, 38, 225, 20));
		}
		return jTextFieldNome;
	}

	/**
	 * This method initializes jTextFieldContato	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldNome() {
		if (jTextFieldContato == null) {
			jTextFieldContato = new JTextField();
			jTextFieldContato.setBounds(new Rectangle(123, 63, 225, 20));
		}
		return jTextFieldContato;
	}


	public static void main(String args[]){
		ClienteJanela Janela = new ClienteJanela();
		Janela.setVisib(true);
		Janela.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
}
